<?php

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;

class DatabaseSeeder extends Seeder {

	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run()
	{
		DB::statement('SET FOREIGN_KEY_CHECKS=0;');

		Model::unguard();

		$this->call('UserTableSeeder');
		$this->call('PostTableSeeder');
		$this->call('ModuleTableSeeder');

		DB::statement('SET FOREIGN_KEY_CHECKS=1;');

	}
}